x86/mm/shadow: don't use locking p2m lookups with the paging lock held.
authorTim Deegan <tim@xen.org>
Thu, 26 Apr 2012 09:03:08 +0000 (10:03 +0100)
committerTim Deegan <tim@xen.org>
Thu, 26 Apr 2012 09:03:08 +0000 (10:03 +0100)
commit362cb954a355ba0bf0e619b80cc460b9412994ef
treed5623dd1b1050702e6232ddf50bbc4a248700965
parentdd9f31cc4e4914bc5aefd2d0fe19361dbf3c532c
x86/mm/shadow: don't use locking p2m lookups with the paging lock held.

The existing interlock between shadow and p2m (where p2m table updates
are done under the paging lock) keeps us safe from the p2m changing
under our feet, and using the locking lookups is a violation of the
locking discipline (which says always to take the p2m lock first).

Signed-off-by: Tim Deegan <tim@xen.org>
Acked-by: Andres Lagar-Cavilla <andres@lagarcavilla.org>
Committed-by: Tim Deegan <tim@xen.org>
xen/arch/x86/mm/shadow/common.c
xen/arch/x86/mm/shadow/multi.c
xen/include/asm-x86/p2m.h